<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 9/28/14
 * Time: 10:58 AM
 */

namespace parser;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

/**
 * The IFileParser interface provides the main functional
 * for parsing files
 */
interface IFileParser extends IParser
{

  /**
   * (PHP 5)<br/>
   * Adding file to some storage
   * @param string $file
   * @return boolean true if file is successfully added and false in another case
   */
  function addFileToParse($file);

  /**
   * (PHP 5)<br/>
   * Adding files to some storage
   * @param array $files
   * @return boolean true if file is successfully added and false in another case
   */
  function addFilesToParse($files);

  /**
   * (PHP 5)<br/>
   * Check file extension
   * @param array $file
   * @return boolean true if file is allowed for adding and false in another case
   */
  function checkFileExtension($file);
}